package com.wkbb.common.enums;

public enum BussinessTypeEnum {
    /**
     * 1.平台收取
     */
    PLATFORMRECEIVE(1, "平台收取"),

    /**
     * 2.第三方收取
     */
    THIRDRECEIVE(2, "第三方收取"),

    /**
     * 3.个人收取
     */
    USERRECEIVE(3, "个人收取");


    private BussinessTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (BussinessTypeEnum bussinessTypeEnum : BussinessTypeEnum.values()) {
            if (bussinessTypeEnum.getValue().intValue() == value) {
                return bussinessTypeEnum.getDesc();
            }
        }
        return null;
    }
}
